Add survey methods to ActionNetwork class#1646
Open
matthewkrausse wants to merge 2 commits intomove-coop:mainfrom
Open
Add survey methods to ActionNetwork class#1646matthewkrausse wants to merge 2 commits intomove-coop:mainfrom
matthewkrausse wants to merge 2 commits intomove-coop:mainfrom
Conversation
Collaborator
matthewkrausse
commented
Nov 27, 2025
- Introduces methods for managing surveys in the ActionNetwork class, including retrieving, creating, and updating surveys.
NirTatcher
reviewed
Jan 1, 2026
| payload.update(kwargs) | ||
|
|
||
| if background_processing: | ||
| payload["action_network:background_processing"] = background_processing |
Contributor
There was a problem hiding this comment.
Hi @matthewkrausse, are we sure that Surveys support background processing? Also we usually add the param as a query param to the URL:
if background_processing:
url = f"{url}?background_processing=true"
response = self.api.post_request(url, data=json.dumps(data))
You sure what you wrote is accurate? Did you test that? Or maybe we can just remove the background processing param and logic all together from Surveys?

Contributor
There was a problem hiding this comment.
@matthewkrausse just wanted to bump this question for you
Collaborator
Author
|
Yeah, I think we are good to remove. Must've gotten confused on it it was
supported.
…On Fri, Feb 20, 2026, 08:16 Ramona T ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In parsons/action_network/action_network.py
<#1646 (comment)>:
> + if title is not None:
+ payload["title"] = title
+ if description is not None:
+ payload["description"] = description
+ if call_to_action is not None:
+ payload["call_to_action"] = call_to_action
+ if browser_url is not None:
+ payload["browser_url"] = browser_url
+ if featured_image_url is not None:
+ payload["featured_image_url"] = featured_image_url
+
+ # Add any additional fields from kwargs
+ payload.update(kwargs)
+
+ if background_processing:
+ payload["action_network:background_processing"] = background_processing
@matthewkrausse <https://github.com/matthewkrausse> just wanted to bump
this question for you
—
Reply to this email directly, view it on GitHub
<#1646 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPB5ZNINWLU2ILWUZKALY34M4XMBAVCNFSM6AAAAACNNCJYBGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTQMZSHEYDSOBTHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Contributor
|
in that case this seems like it can be closed :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.